﻿using ParboiledSharp.parboiled.dataobjects;

namespace ParboiledSharp.parboiled.rules
{
    class ZeroOrMore : ContainerRule
    {
        public ZeroOrMore(object rule)
        {
            SetRule(rule);
        }

        internal override bool Execute(Context context)
        {
            while (ExecuteRule(GetRule(), context))
            {
            }
          return true;
        }
    }
}
